﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Skyworth.CRM.Service.Entity;
using Skyworth.CRM.Common;
using Skyworth.CRM.Service.IDAL;
using Skyworth.CRM.Service.IBLL;

namespace Skyworth.CRM.BLL
{
    public class CustActivitiesBLL : ICustActivitiesBLL
    {
        private ICustActivitiesDAL _custBussDAL;
        public CustActivitiesBLL(ICustActivitiesDAL custActDAL)
        {
            _custBussDAL = custActDAL;
        }

        public string Add(string strPrefix, CustActivities model)
        {
            return _custBussDAL.Add(strPrefix,model);
        }
        public void Update(CustActivities model)
        {
            _custBussDAL.Update(model);
        }
        public void Delete(int custActId)
        {
            _custBussDAL.Delete(custActId);
        }
        public CustActivities GetModel(int custActId)
        {
            return _custBussDAL.GetModel(custActId);
        }
        public DataTable Query(string strWhere)
        {
            return _custBussDAL.Query(strWhere);
        }
        public DataTable Query(string strWhere, string orderKey, int pageSize, int pageIndex, out int recordCount)
        {
            return _custBussDAL.Query(strWhere, orderKey, pageSize, pageIndex, out recordCount);
        }
    }
}